package com.bestdreamer.json;

import com.bestdreamer.pojo.User;
import com.google.gson.Gson;

public class JsonTest {

    public static void main(String[] args) {
        User user = new User();
        user.setUserId("11");
        user.setSex(1);
        System.out.println(new Gson().toJson(user));
    }
}
